package ibmetp.mis.controller.sysparam;

import ibmetp.mis.service.SysParamService;
import ibmetp.mis.service.UserService;
import ibmetp.mis.serviceImpl.SysParamServiceImpl;
import ibmetp.mis.serviceImpl.UserServiceImpl;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 * @author ZHANG YU TING
 *
 */
public class SysParamDelServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public SysParamDelServlet() {
        super();
        // TODO Auto-generated constructor stub
    }
    
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		System.out.println("Calling SysparamDelServlet..");
		//系统参数Id数组
		String sysparamIds=request.getParameter("paramId");
		
		//删除系统参数
		if(sysparamIds!=null){
		System.out.println("Del SysParamIds:"+sysparamIds);
		SysParamService ss=new SysParamServiceImpl();
		ss.deleteSysParamById(sysparamIds);		
		}
		
	}

}
